import router from './router'
import { projectId } from './store/modules/proId'
console.log(projectId())
const query = {id:12312}
// export function getProId(query) {
  // 修改底层方法
  const transitionTo = router.history.transitionTo // 临时存储底层方法
  router.history.transitionTo = function(location, onComplete, onAbort) {
    location = typeof location === 'object' ? {
      ...location,
      query: { ...location.query, ...query }
    } : { path: location, query }
    transitionTo.call(router.history, location, onComplete, onAbort)
  }
  console.log(router.history.transitionTo)
// }

// export default {
//   getProId
// }
